package sg.edu.nus.iss.team4ft.ui;
////Author : DINH NGOC TUAN VU
//package sg.edu.nus.iss.team4ft.ui.account;
//
//import java.awt.GridLayout;
//import java.awt.Panel;
//import java.awt.event.WindowAdapter;
//import java.awt.event.WindowEvent;
//import java.awt.event.WindowListener;
//
//import javax.swing.*;
//
//import sg.edu.nus.iss.team4ft.accountsystem.CustomerAccount;
//
//public class CustomerRegistration extends JFrame{
//
//	/**
//	 * 
//	 */
//	private static final long serialVersionUID = 1L;
//	private AccountApplication accountManager;
//	private CustomerAccountRegistration customerAccountRegistration;
//	
//	private WindowListener windowListener = new WindowAdapter () {
//        public void windowClosing (WindowEvent e) {
//        	accountManager.shutdown();
//        }
//    };
//    
//    public CustomerRegistration(AccountApplication accountManager) throws CloneNotSupportedException, Exception{
//		super ("Account Management System");
//		
//		this.accountManager = accountManager;
//		//accountPanel = new CustomerControl(accountManager);
//		customerAccountRegistration = new CustomerAccountRegistration(new CustomerAccount(), Mode.New);
//		Panel p = new Panel ();
//		p.setLayout (new GridLayout(0, 1));
//		p.add (customerAccountRegistration);
//		
//		add ("Center", p);
//		 
//		addWindowListener(windowListener);	
//    }
//}
